<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>文件上传</title>
</head>
<body>
<!-- 
	1.文件上传method必须为post
	2.form表单中必须有enctype属性
 -->
<form action="uploadPhoto" method="post" enctype="multipart/form-data">
	<input type="file" name="file"></br>
	username:<input type="text" name="username" readonly="readonly" value="${user.username }"></br>
	文件描述:<input type="text" name="description"></br>
	<input type="submit" value="上传"><br>
</form>
</body>
</html>